<template>
	<view class="page-index">
		<view v-if="statusInfo.status == 2" class="hcss">失败原因: {{statusInfo.refuse}}</view>
		<view class="editBox">
			<!-- <view class="editItem">
				<view class="editTitle">门店名称</view>
				<view class="editInput">
					<uni-easyinput v-model="form.name" placeholder="请输入门店名称"></uni-easyinput>
				</view>
			</view>
			<view class="editItem">
				<view class="editTitle">门店负责人</view>
				<view class="editInput">
					<uni-easyinput v-model="form.name" placeholder="请输入门店负责人"></uni-easyinput>
				</view>
			</view> -->
			<uni-forms :value="form" :label-width="100" ref="form">
				<uni-forms-item label="门店照片" name="head_image">
					<view class="">
						<view class="" style="font-size: 24rpx;color: #999; height: 36px;line-height: 36px;">
							请上传门店照片
						</view>
						<image :src="form.head_image" mode="" class="imageBox" v-if="form.head_image" @click="uploadImage(1)" style="border: none;"></image>
						<view class="imageBox" @click="uploadImage(1)" v-else>
							<image src="/static/home/photo.png" class="photo"></image>
						</view>
					</view>
				</uni-forms-item>
				<uni-forms-item label="营业执照" name="shop_image">
					<view class="">
						<view class="" style="font-size: 24rpx;color: #999; height: 36px;line-height: 36px;">
							请上传营业执照
						</view>
						<image :src="form.shop_image" mode="" class="imageBox" v-if="form.shop_image" style="border: none;"></image>
						<view class="imageBox" @click="uploadImage(2)" v-else >
							<image src="/static/home/photo.png" class="photo" @click="uploadImage(2)"></image>
						</view>
					</view>
				</uni-forms-item>
				<uni-forms-item label="门店名称" name="name"><uni-easyinput type="text" v-model="form.name" placeholder="请输入门店名称" style="flex-shrink: 1;" /></uni-forms-item>
				<uni-forms-item label="门店负责人" name="head"><uni-easyinput type="text" v-model="form.head" placeholder="请输入门店负责人" style="flex-shrink: 1;" /></uni-forms-item>
				<uni-forms-item label="门店手机" name="mobile"><uni-easyinput type="text" v-model="form.mobile" placeholder="请输入门店手机" style="flex-shrink: 1;" /></uni-forms-item>
		
				<uni-forms-item label="门店坐标" name="mobile">
					<view class="mapBox">
						轻点地图,可标注门店位置
						<map style="width: 100%; height: 200px;" :latitude="latitude" :longitude="longitude" :markers="covers" @tap="mapclick" :enable-scroll="false"></map>
					</view>
				</uni-forms-item>
				<uni-forms-item label="门店地址" name="address"><uni-easyinput type="text" v-model="form.address" placeholder="请选择门店地址" style="flex-shrink: 1;" disabled /></uni-forms-item>
				<view class="" style="text-align: center;display: flex;align-items: center;justify-content: center;font-size: 24rpx;color: #999;">
					<label class="radio" @click="radioClick()"><radio value="r2" :checked="checked" style="transform:scale(0.6)" color="#2994FF" /></label>
					阅读并同意万帮车服
					<text @click="goWebview('门店')" class="goWebview">《服务协议》</text>
				</view>
			</uni-forms>
			<view class="submitBox">
				<!-- <view class="close" @click="close()">取消</view> -->
				<view class="submit" @click="submit()">确认</view>
			</view>
			<view class="" style="height: 300rpx;">
				
			</view>
		</view>
	</view>
</template>

<script src="./page.js"></script>

<style scoped lang="scss">
@import 'page.scss';
</style>